<template>
<div class="detail-swiper">
    <swiper class="item" v-if="images.length">
        <swiper-item v-for="(item, index) in images" :key="index">
            <img :src="item" alt="" />
        </swiper-item>
    </swiper>
</div>
</template>

<script>
import {
    Swiper,
    SwiperItem
} from 'components/common/swiper'
export default {
    name: "DetailSwiper",
    components: {
        Swiper,
        SwiperItem
    },
    props: {
        images: {
            type: Array,
            default () {
                return []
            }
        }
    }
}
</script>

<style scoped>
.item {
    text-align: center;
    height: 300px;
}
</style>
